package com.EJ.ejcompanyweb.Util;

import android.content.Context;
import android.content.res.Resources;
import android.provider.ContactsContract;

import com.EJ.ejcompanyweb.R;

import java.net.URL;

public class ADFilterTool {

    public static  boolean hasAd(Context context,String url){
    Resources res=context.getResources();
    String[] addUrlS=res.getStringArray(R.array.adBlockUrl);
    for (String addUrl:addUrlS){
        if (url.contains(addUrl)){
            return true;
        }
    }
    return false;
    }
}
